*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.container{
    width: 500px;
    height: 300px;
    margin: 0 auto;
    outline: 1px solid black;;
}

.container .imgarea{
    width: 100%;
    height: 100%;
}

.container .imgarea img{
    width: 100%;
    height: 100%;
}